package com.example.demo_news.Repository;

import java.util.List;

import com.example.demo_news.entity.Subscribe;

import org.springframework.data.jpa.repository.JpaRepository;

public interface SubscribeRepository extends JpaRepository<Subscribe,Integer>{
    public List<Subscribe> findByPersonId(Integer personId);
    public List<Subscribe> findByOfficialAccountId(Integer officialAccountId);
    public Subscribe findSubscribeByPersonIdAndOfficialAccountId(Integer PersonId,Integer OfficialAccountId);
}
